package testiranjeSoftvera.actions;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.KeyStroke;

import testiranjeSoftvera.GuiElements.GameDialog;

public class ExitGameAction extends AbstractTestAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7971621068211982281L;

	public ExitGameAction() {
		putValue(ACCELERATOR_KEY,
				KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK));
		putValue(javax.swing.Action.NAME, "Exit");
		putValue(SHORT_DESCRIPTION, "Exit");
		//putValue(SMALL_ICON, loadIcon("images/filenew.png"));
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		GameDialog.getInstance().dispose();

	}

}
